package com.nchu.learn.netty.resolver;

import com.nchu.learn.netty.enums.MessageTypeEnum;
import com.nchu.learn.netty.model.Message;

/**
 * @author fujianjian
 * @project self-learning
 * @date 2020/1/16 11:33
 */
public class EmptyMessageResolver implements Resolver {
    @Override
    public Message resolve(Message message) {
        return null;
    }

    @Override
    public boolean support(Message message) {
        return message.getMessageType() == MessageTypeEnum.EMPTY;
    }


}
